﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DataPagerCtrl.ascx.cs" Inherits="MobileShop.Controls.DataPagerCtrl" %>

<script type="text/javascript">
    function <%=ClientID %>pageClick(i) {
        document.getElementById("<%=  hidSelectedPage.ClientID %>").value = i;
        document.getElementById("<%=  btnPage.ClientID %>").click() ;
    }

    function <%=ClientID %>pageLeft() {
        document.getElementById("<%=  btnPageLeft.ClientID %>").click() ;
    }

    function <%=ClientID %>pageRight() {
        document.getElementById("<%=  btnPageRight.ClientID %>").click() ;
    }

    function <%=ClientID %>pageFirst() {
        document.getElementById("<%=  btnPageFirst.ClientID %>").click() ;
    }

    function <%=ClientID %>pageLast() {
        document.getElementById("<%=  btnPageLast.ClientID %>").click() ;
    }
</script>

<asp:Literal ID="litPager" runat="server">
</asp:Literal>

<asp:Button ID="btnPage" runat="server" OnClick="btnPage_Click" style='display:none' />
<asp:Button ID="btnPageLeft" runat="server" OnClick="btnPageLeft_Click" style='display:none' />
<asp:Button ID="btnPageRight" runat="server" OnClick="btnPageRight_Click" style='display:none' />
<asp:Button ID="btnPageFirst" runat="server" OnClick="btnPageFirst_Click" style='display:none' />
<asp:Button ID="btnPageLast" runat="server" OnClick="btnPageLast_Click" style='display:none' />
<asp:HiddenField ID="hidSelectedPage" runat="server" />